export const constants = {
    SOURCE: '输入源',
    SINK: '输出源',
    STEAM: '传送流',
    TRIGGER: '触发器',
    PARTITION: '分区',
    TABLE: '表格',
    WINDOW: '窗口',
    AGGREGATION: '聚合',
    PROJECTION_QUERY: '投射',
    FILTER_QUERY: '过滤',
    WINDOW_QUERY: '查询窗口',
    FUNCTION_QUERY: '查询函数',
    JOIN_QUERY: '连接',
    PATTERN_QUERY: '模式',
    SEQUENCE_QUERY: '序列',
    FUNCTION: '自定义函数',
    key: ['sinkList', 'sourceList', 'streamList', 'partitionList', 'triggerList', 'tableList', 'windowList', 'aggregationList', 'functionList',],
    queryKey: ['WINDOW_FILTER_PROJECTION', 'JOIN', 'PATTERN', 'SEQUENCE'],
    //回显抽屉的标题
    configTiltle: [{
        type: 'streamList',
        title: '传送流',
        max: 1,
        min: 1,
        Source: [
            {
                type: 'sourceList',
                title: '输入源',
            }, {
                type: 'queryLists.WINDOW_FILTER_PROJECTION',
                title: '投射',
            },
            {
                type: 'queryLists.JOIN',
                title: '连接'
            },

        ]
    },
    {
        type: 'sourceList',
        title: '输入源', max: 1,
        min: 1,
        Source: [{
            type: 'streamList',
            title: '传送流',
        }]
    },
    {
        type: 'sinkList',
        title: '输出源', max: 1,
        min: 1,
        Source: [{
            type: 'streamList',
            title: '传送流',
        }]
    },
    {
        type: 'triggerList',
        title: '触发器', max: 1,
        min: 1,
        Source: []
    },
    {
        type: 'partitionList',
        title: '分区', max: 1,
        min: 1,
        Source: []
    },
    {
        type: 'tableList',
        title: '表格', max: 1,
        min: 1,
        Source: [{
            type: 'queryLists.WINDOW_FILTER_PROJECTION',
            title: '投射',
        },
        {
            type: 'queryLists.JOIN',
            title: '连接'
        },
        ]
    },
    {
        type: 'windowList',
        title: '窗口', max: 1,
        min: 1,
        Source: [{
            type: 'queryLists.WINDOW_FILTER_PROJECTION',
            title: '投射',
        },
        {
            type: 'queryLists.JOIN',
            title: '连接'
        },
        {
            type: 'queryLists.PATTERN',
            title: '模式',
        },
        {
            type: 'queryLists.SEQUENCE',
            title: '序列',
        },
        ]
    },
    {
        type: 'queryLists.WINDOW_FILTER_PROJECTION',
        title: '投射', max: 1,
        min: 1,
        Source: [{
            type: 'streamList',
            title: '传送流',
        }, {
            type: 'tableList',
            title: '表格'
        }, {
            type: 'triggerList',
            title: '触发器'
        }, {
            type: 'windowList',
            title: '窗口'
        }],
        Target: [{
            type: 'streamList',
            title: '传送流',
        }, , {
            type: 'tableList',
            title: '表格'
        }, , {
            type: 'windowList',
            title: '窗口'
        },]
    },
    {
        type: 'functionList',
        title: '自定义函数', max: 1,
        min: 1,
        Source: []
    },
    {
        type: 'queryLists.JOIN',
        title: '连接', max: 2,
        min: 1,
        Source: [{
            type: 'streamList',
            title: '传送流',
        },
        {
            type: 'tableList',
            title: '表格',
        },
        {
            type: 'windowList',
            title: '窗口',
        },
        {
            type: 'aggregationList',
            title: '聚合'
        },
        ]
    },
    {
        type: 'queryLists.PATTERN',
        title: '模式', max: 999,
        min: 1,
        Source: [{
            type: 'streamList',
            title: '传送流',
        },
        {
            type: 'tableList',
            title: '表格',
        },
        {
            type: 'windowList',
            title: '窗口',
        },
        {
            type: 'triggerList',
            title: '触发器',
        },
        ]
    },
    {
        type: 'queryLists.SEQUENCE',
        title: '序列', max: 999,
        min: 1,
        Source: [{
            type: 'streamList',
            title: '传送流',
        },
        {
            type: 'tableList',
            title: '表格',
        },
        {
            type: 'windowList',
            title: '窗口',
        },
        {
            type: 'triggerList',
            title: '触发器',
        },
        ]
    },
    {
        type: 'aggregationList',
        title: '聚合', max: 1,
        min: 1,
        Source: [{
            type: 'streamList',
            title: '传送流',
        },
        {
            type: 'tableList',
            title: '表格',
        },
        {
            type: 'windowList',
            title: '窗口',
        },
        {
            type: 'triggerList',
            title: '触发器',
        },
        ]
    },
        // {
        //   name: 'queryLists.WINDOW_FILTER_PROJECTION',
        //   title: '过滤'
        // },

    ],
    TYPE: {
        sinkList: 'sinkList', //输入输出
        sourceList: 'sourceList', //输入输出
        streamList: 'streamList', //流程构件
        partitionList: 'partitionList', //流程构件
        triggerList: 'triggerList', //流程构件
        tableList: 'tableList', //存储收集
        windowList: 'windowList', //存储收集
        aggregationList: 'aggregationList', //存储收集
        functionList: 'functionList', //函数下的函数类型
        queryprojection: 'queryLists.WINDOW_FILTER_PROJECTION', //查询下projection-query
        //这3个节点与project数据结构一致 filter-query  window-query   function-query(WINDOW_FILTER_PROJECTION 类型)
        queryJoin: 'queryLists.JOIN', //查询下 join-query
        queryPattern: 'queryLists.PATTERN', //查询下 pattern-query
        querySequence: 'queryLists.SEQUENCE' //查询下 sequence-query
    },
    dataResponse: {
        "siddhiAppConfig": {
            "siddhiAppName": '',
            "siddhiAppDescription": '',
            "appAnnotationList": [],
            "appAnnotationListObjects": [],
            "streamList": [],
            "tableList": [],
            "windowList": [],
            "triggerList": [],
            "aggregationList": [],
            "functionList": [],
            "partitionList": [],
            "sourceList": [],
            "sinkList": [],
            "queryLists": {
                "WINDOW_FILTER_PROJECTION": [],
                "PATTERN": [],
                "SEQUENCE": [],
                "JOIN": []
            },
            "finalElementCount": 0
        },
        "edgeList": []
    },
    VERTEX_SELECTION_COLOR: '#789EC1',
    VERTEX_SELECTION_LIGHT_COLOR: '#E9E9E9',
    POINT_FILL_COLOR: '#2680D2'
}
